package icu.qx.pro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import icu.qx.pro.mapper.ProWorkPeoMapper;
import icu.qx.pro.domain.ProWorkPeo;
import icu.qx.pro.service.IProWorkPeoService;

/**
 * 生产人员Service业务层处理
 *
 * @author yong
 * @date 2024-07-03
 */
@Service
public class ProWorkPeoServiceImpl implements IProWorkPeoService {
    @Autowired
    private ProWorkPeoMapper proWorkPeoMapper;

    /**
     * 查询生产人员
     *
     * @param wpWtaskCode 生产人员主键
     * @return 生产人员
     */
    @Override
    public ProWorkPeo selectProWorkPeoByWpWtaskCode(String wpWtaskCode) {
        return proWorkPeoMapper.selectProWorkPeoByWpWtaskCode(wpWtaskCode);
    }

    /**
     * 查询生产人员列表
     *
     * @param proWorkPeo 生产人员
     * @return 生产人员
     */
    @Override
    public List<ProWorkPeo> selectProWorkPeoList(ProWorkPeo proWorkPeo) {
        return proWorkPeoMapper.selectProWorkPeoList(proWorkPeo);
    }

    /**
     * 新增生产人员
     *
     * @param proWorkPeo 生产人员
     * @return 结果
     */
    @Override
    public int insertProWorkPeo(ProWorkPeo proWorkPeo) {
        return proWorkPeoMapper.insertProWorkPeo(proWorkPeo);
    }

    /**
     * 修改生产人员
     *
     * @param proWorkPeo 生产人员
     * @return 结果
     */
    @Override
    public int updateProWorkPeo(ProWorkPeo proWorkPeo) {
        return proWorkPeoMapper.updateProWorkPeo(proWorkPeo);
    }

    /**
     * 批量删除生产人员
     *
     * @param wpWtaskCodes 需要删除的生产人员主键
     * @return 结果
     */
    @Override
    public int deleteProWorkPeoByWpWtaskCodes(String[] wpWtaskCodes) {
        return proWorkPeoMapper.deleteProWorkPeoByWpWtaskCodes(wpWtaskCodes);
    }

    /**
     * 删除生产人员信息
     *
     * @param wpWtaskCode 生产人员主键
     * @return 结果
     */
    @Override
    public int deleteProWorkPeoByWpWtaskCode(String wpWtaskCode) {
        return proWorkPeoMapper.deleteProWorkPeoByWpWtaskCode(wpWtaskCode);
    }
}
